<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <#include "../common.ftl">
</head>
<body>
<form class="layui-form" id="supplement">


    <input type="hidden" name="materialId" value="${(bom.materialBean.id)!}">
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">项目</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input"
                   name="projectNo" value="" lay-verify="required"
                   placeholder="项目编码">
        </div>
    </div>

    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">物料编码</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input"
                   name="materialNo" value="" lay-verify="required"
                   placeholder="物料编码">
        </div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">物料名称</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input"
                   name="materialName" value="" lay-verify="required"
                   placeholder="物料名称">
        </div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">数量</label>
        <div class="layui-input-block">
            <input type="number" class="layui-input"
                   name="materialCount"
                   placeholder="请输入数量">
        </div>
    </div>
    <div class="layui-form-item layui-row">
        <label class="layui-form-label">描述</label>
        <div class="layui-input-block">
            <textarea placeholder="请输入服务内容" name="pickDescribe" type="text" class="layui-textarea" lay-verify="required"></textarea>
        </div>
    </div>


    <@shiro.user>
        <input type="hidden" name="producer" value="<@shiro.principal property="id"></@shiro.principal> ">
    </@shiro.user>

    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">申请人</label>
        <div class="layui-input-block">
            <@shiro.user>
                <input type="text" class="layui-input"
                       name=""
                       value="<@shiro.principal property="empName"></@shiro.principal>"
                       placeholder="领料人姓名" readonly>
            </@shiro.user>
        </div>
    </div>

    <br/>
    <div class="layui-form-item layui-row layui-col-xs12">
        <div class="layui-input-block">
            <button class="layui-btn layui-btn-lg" lay-submit=""
                    lay-filter="addSupplementMaterial">确认
            </button>
            <button class="layui-btn layui-btn-lg layui-btn-normal" type="reset" id="resetBtn">重置</button>
        </div>
    </div>

</form>
<script type="text/javascript" src="${ctx}/layuimini/js/production/supplementMaterial.js"></script>

</body>

</html>

